<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Loading</title>
    <style>
      body {
        margin: 0;
        padding: 0;
      }
      .body {
        height: 100vh;
        background-color: rgb(16, 16, 20);
        text-align: center;
        color: #fff;
        vertical-align: middle;
        display: table-cell;
        width: 100vw;
      }
    </style>
  </head>
  <body>
    <div class="body" id="data">加载中Loading...</div>
  </body>
  <script>
    const { ipcRenderer } = window.require("electron");
    ipcRenderer.on("check-cmd", (e, loadingStatus) => {
      console.log(loadingStatus);
      document.getElementById("data").innerText = loadingStatus.cmdCheckReasons;
    });
  </script>
</html>
